import { createRouter, createWebHashHistory } from 'vue-router'
import index from '../views'
import home from '../views/pages/home.vue'
import login from '../views/pages/login.vue'
import zhensuoguanliyuanList from '@/views/pages/zhensuoguanliyuan/list'
import zhensuoguanliyuanDetail from '@/views/pages/zhensuoguanliyuan/formModel'
import zhensuoguanliyuanAdd from '@/views/pages/zhensuoguanliyuan/formAdd'
import huanzheList from '@/views/pages/huanzhe/list'
import huanzheDetail from '@/views/pages/huanzhe/formModel'
import huanzheAdd from '@/views/pages/huanzhe/formAdd'
import huanzheRegister from '@/views/pages/huanzhe/register'
import huanzheCenter from '@/views/pages/huanzhe/center'
import yishengList from '@/views/pages/yisheng/list'
import yishengDetail from '@/views/pages/yisheng/formModel'
import yishengAdd from '@/views/pages/yisheng/formAdd'
import shoufeiyuanList from '@/views/pages/shoufeiyuan/list'
import shoufeiyuanDetail from '@/views/pages/shoufeiyuan/formModel'
import shoufeiyuanAdd from '@/views/pages/shoufeiyuan/formAdd'
import yaoshiList from '@/views/pages/yaoshi/list'
import yaoshiDetail from '@/views/pages/yaoshi/formModel'
import yaoshiAdd from '@/views/pages/yaoshi/formAdd'
import newsList from '@/views/pages/news/list'
import jiuzhenguahaoList from '@/views/pages/jiuzhenguahao/list'
import jiuzhenguahaoDetail from '@/views/pages/jiuzhenguahao/formModel'
import jiuzhenguahaoAdd from '@/views/pages/jiuzhenguahao/formAdd'
import huanzhebingliList from '@/views/pages/huanzhebingli/list'
import huanzhebingliDetail from '@/views/pages/huanzhebingli/formModel'
import huanzhebingliAdd from '@/views/pages/huanzhebingli/formAdd'
import menzhenshoufeiList from '@/views/pages/menzhenshoufei/list'
import menzhenshoufeiDetail from '@/views/pages/menzhenshoufei/formModel'
import menzhenshoufeiAdd from '@/views/pages/menzhenshoufei/formAdd'
import meirijiesuanList from '@/views/pages/meirijiesuan/list'
import meirijiesuanDetail from '@/views/pages/meirijiesuan/formModel'
import meirijiesuanAdd from '@/views/pages/meirijiesuan/formAdd'
import yaopinxinxiList from '@/views/pages/yaopinxinxi/list'
import yaopinxinxiDetail from '@/views/pages/yaopinxinxi/formModel'
import yaopinxinxiAdd from '@/views/pages/yaopinxinxi/formAdd'
import yaopinrukuList from '@/views/pages/yaopinruku/list'
import yaopinrukuDetail from '@/views/pages/yaopinruku/formModel'
import yaopinrukuAdd from '@/views/pages/yaopinruku/formAdd'
import yaopinchukuList from '@/views/pages/yaopinchuku/list'
import yaopinchukuDetail from '@/views/pages/yaopinchuku/formModel'
import yaopinchukuAdd from '@/views/pages/yaopinchuku/formAdd'
import syslogList from '@/views/pages/syslog/list'
import syslogDetail from '@/views/pages/syslog/formModel'
import syslogAdd from '@/views/pages/syslog/formAdd'
import jianchaxiangmuList from '@/views/pages/jianchaxiangmu/list'
import jianchaxiangmuDetail from '@/views/pages/jianchaxiangmu/formModel'
import jianchaxiangmuAdd from '@/views/pages/jianchaxiangmu/formAdd'
import yishengpaibanList from '@/views/pages/yishengpaiban/list'
import yishengpaibanDetail from '@/views/pages/yishengpaiban/formModel'
import yishengpaibanAdd from '@/views/pages/yishengpaiban/formAdd'

const routes = [{
		path: '/',
		redirect: '/index/home'
	},
	{
		path: '/index',
		component: index,
		children: [{
			path: 'home',
			component: home
		}
		, {
			path: 'zhensuoguanliyuanList',
			component: zhensuoguanliyuanList
		}, {
			path: 'zhensuoguanliyuanDetail',
			component: zhensuoguanliyuanDetail
		}, {
			path: 'zhensuoguanliyuanAdd',
			component: zhensuoguanliyuanAdd
		}
		, {
			path: 'huanzheList',
			component: huanzheList
		}, {
			path: 'huanzheDetail',
			component: huanzheDetail
		}, {
			path: 'huanzheAdd',
			component: huanzheAdd
		}
		, {
			path: 'huanzheCenter',
			component: huanzheCenter
		}
		, {
			path: 'yishengList',
			component: yishengList
		}, {
			path: 'yishengDetail',
			component: yishengDetail
		}, {
			path: 'yishengAdd',
			component: yishengAdd
		}
		, {
			path: 'shoufeiyuanList',
			component: shoufeiyuanList
		}, {
			path: 'shoufeiyuanDetail',
			component: shoufeiyuanDetail
		}, {
			path: 'shoufeiyuanAdd',
			component: shoufeiyuanAdd
		}
		, {
			path: 'yaoshiList',
			component: yaoshiList
		}, {
			path: 'yaoshiDetail',
			component: yaoshiDetail
		}, {
			path: 'yaoshiAdd',
			component: yaoshiAdd
		}
		, {
			path: 'newsList',
			component: newsList
		}
		, {
			path: 'jiuzhenguahaoList',
			component: jiuzhenguahaoList
		}, {
			path: 'jiuzhenguahaoDetail',
			component: jiuzhenguahaoDetail
		}, {
			path: 'jiuzhenguahaoAdd',
			component: jiuzhenguahaoAdd
		}
		, {
			path: 'huanzhebingliList',
			component: huanzhebingliList
		}, {
			path: 'huanzhebingliDetail',
			component: huanzhebingliDetail
		}, {
			path: 'huanzhebingliAdd',
			component: huanzhebingliAdd
		}
		, {
			path: 'menzhenshoufeiList',
			component: menzhenshoufeiList
		}, {
			path: 'menzhenshoufeiDetail',
			component: menzhenshoufeiDetail
		}, {
			path: 'menzhenshoufeiAdd',
			component: menzhenshoufeiAdd
		}
		, {
			path: 'meirijiesuanList',
			component: meirijiesuanList
		}, {
			path: 'meirijiesuanDetail',
			component: meirijiesuanDetail
		}, {
			path: 'meirijiesuanAdd',
			component: meirijiesuanAdd
		}
		, {
			path: 'yaopinxinxiList',
			component: yaopinxinxiList
		}, {
			path: 'yaopinxinxiDetail',
			component: yaopinxinxiDetail
		}, {
			path: 'yaopinxinxiAdd',
			component: yaopinxinxiAdd
		}
		, {
			path: 'yaopinrukuList',
			component: yaopinrukuList
		}, {
			path: 'yaopinrukuDetail',
			component: yaopinrukuDetail
		}, {
			path: 'yaopinrukuAdd',
			component: yaopinrukuAdd
		}
		, {
			path: 'yaopinchukuList',
			component: yaopinchukuList
		}, {
			path: 'yaopinchukuDetail',
			component: yaopinchukuDetail
		}, {
			path: 'yaopinchukuAdd',
			component: yaopinchukuAdd
		}
		, {
			path: 'syslogList',
			component: syslogList
		}, {
			path: 'syslogDetail',
			component: syslogDetail
		}, {
			path: 'syslogAdd',
			component: syslogAdd
		}
		, {
			path: 'jianchaxiangmuList',
			component: jianchaxiangmuList
		}, {
			path: 'jianchaxiangmuDetail',
			component: jianchaxiangmuDetail
		}, {
			path: 'jianchaxiangmuAdd',
			component: jianchaxiangmuAdd
		}
		, {
			path: 'yishengpaibanList',
			component: yishengpaibanList
		}, {
			path: 'yishengpaibanDetail',
			component: yishengpaibanDetail
		}, {
			path: 'yishengpaibanAdd',
			component: yishengpaibanAdd
		}
		]
	},
	{
		path: '/login',
		component: login
	}
	,{
		path: '/huanzheRegister',
		component: huanzheRegister
	}
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
